package com.wwj.auction.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.auction.admin.entity.Shop;
import com.wwj.auction.admin.entity.Store;
import com.wwj.auction.admin.entity.vo.PageModel;
import com.wwj.auction.admin.entity.vo.ShopVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wwj
 * @since 2021-08-29
 */
public interface ShopService extends IService<Shop> {

    /**
     * 分页查询商品数据
     *
     * @param page
     * @param limit
     * @return
     */
    PageModel<ShopVo> listForShop(Integer page, Integer limit);

    /**
     * 查询指定店铺的商品列表
     *
     * @param storeId
     * @param page
     * @param limit
     * @return
     */
    PageModel<ShopVo> listByStoreId(Integer storeId, Integer page, Integer limit);

    /**
     * 根据商品id查询所属的店铺信息
     *
     * @param shopId
     * @return
     */
    Store getStoreName(Integer shopId);
}
